package com.yungu.swift.order.dao;


import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.order.helper.model.DriverScoreVo;
import com.yungu.swift.order.model.dto.OrderEvaluateDto;

import java.util.List;
import java.util.Map;

/**
 * OrderEvaluateMapper数据库操作接口类
 **/

public interface OrderEvaluateMapper extends IMapper<OrderEvaluateDto> {

    OrderEvaluateDto getEvalByOrderUid(String orderUuid);

    /**
     * 根据查询时间获取司机平均评分
     *
     * @param map
     * @return
     */
    Double findAverageScoreByTime(Map<String, Object> map);

    /**
     * 司机分数统计
     *
     * @param list
     * @return
     */
    List<DriverScoreVo> listDriverScore(List<String> list);
}